package com.bookbuf.module.stub.impl;


import android.content.Context;

import com.bookbuf.library.domain.User;
import com.bookbuf.module.stub.Stub;

/**
 * author: robert.
 * date :  2016/12/26.
 */

public class BizProxyStub extends Stub<BizProxyStub.BizUiInterface, BizProxyStub.BizServiceInterface, BizProxyStub.BizDependence> {

    private static BizProxyStub stub = null;

    private BizProxyStub() {

    }

    public static synchronized BizProxyStub asInterface(BizProxyStub.BizDependence dependence) {
        if (stub == null) {
            stub = new BizProxyStub();
            stub.injectDependence(dependence);
        }
        return stub;
    }

    @Override
    protected String getModuleClassName() {
        return "com.bookbuf.biz.BizProxy";
    }

    public interface BizServiceInterface {

        /**
         * @return 提供试卷的名称
         */
        String provideExaminationName();

        /**
         * @return 提供试卷的考试次数
         */
        String provideExaminationAnswerCount();
    }

    public interface BizUiInterface {

        void callExamDetailActivity(Context context);
    }

    public interface BizDependence {
        User injectUser();
    }
}
